import Test from './Test'
//增
const user = {
  name: '测试',
  age: 23,
  email:'1770813141@qq.com'
}
const run = async () => {
  const data = await new Test(user)
  const result = await data.save()
  console.log(result);
}
// run()
//查
const findMethods = async () => {
  const result = await Test.find()
  console.log(result);
}
// findMethods()
//改
const updateMethods = async () => {
  const result = await Test.updateOne({ name: '测试' })
  console.log(result);
}
// updateMethods()
//删
const deleteMethods = async () => {
  const result = await Test.deleteOne({ name: '测试' })
  console.log(result);
}
deleteMethods()